{% extends 'layout.html' %}
{% block title %}Userlist | {{ block.super }}{% endblock %}
{% block content %}
  <h2>Userlist</h2>
  <ul>
  {% for user in users limit:3 %}
    <li>
      <a href="/users/{{ user.username|urlencode }}">{{ user.username }}</a> -
      
      {{ user.tasks.first | safe }}
    </li>
    
    {% if not user.username == 'foobar' %}
        haha
    {% endif %}
    
  {% endfor %}
  </ul>

{% endblock %}
